package com.cnhis.cloudhealth.clinical.hosdoctor.doctorscheme.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.cnhis.cloudhealth.clinical.hosdoctor.doctorparameter.bo.DoctorparameterBo;
import com.cnhis.cloudhealth.clinical.hosdoctor.doctorparameter.service.IDoctorparameter;
import com.cnhis.cloudhealth.clinical.hosdoctor.doctorscheme.bo.DoctorschemeBo;
import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

@Service
public class DoctorschemeImpl implements IDoctorscheme {
	@Autowired
	private DoctorschemeBo doctorschemeBo;


	@Override
	public ModelVo saveScheme(String bbx1, String bdk1, String bar1, String bef1) throws Exception {
		return doctorschemeBo.saveScheme(bbx1,bdk1,bar1,bef1);
	}


	@Override
	public ModelVo getSchemeType() {
		return doctorschemeBo.selectSchemeType();
	}

	@Override
	public ModelVo getAllMedType(){
		return doctorschemeBo.selectAllMedType();
	}

	@Override
	public ModelVo getAllMedByType(Map map, int currentPage, int pageSize){
		return doctorschemeBo.selectAllMedByType(map,currentPage,pageSize);
	}

	@Override
	public ModelVo getMedKnolegeTree(Map map) {
		return doctorschemeBo.selectMedKnolegeTree(map);
	}

	@Override
	public ModelVo getMedKnolegeDetail(Map map) {
		return doctorschemeBo.selectMedKnolegeDetail(map);
	}

	@Override
	public ModelVo getMedKnolegeByKey(Map map,int pageno,int pagesize) {
		return doctorschemeBo.selectMedKnolegeByKey(map,pageno,pagesize);
	}
}
